

package com.hazelcast.test;

/**
 * A task that can report the completion progress of some other tested
 * task. Used to write tests that can prolong their execution time in slow
 * environments as long as there is progress.
 *
 * @see HazelcastTestSupport#assertCompletesEventually(ProgressCheckerTask, long)
 * @see TaskProgress
 */
@FunctionalInterface
public interface ProgressCheckerTask {
    /**
     * Collects and returns progress information
     *
     * @return the progress information collected
     */
    TaskProgress checkProgress();
}
